3.1.22 \(\int \frac {x^3 (A+B x+C x^2)}{a+b x^2+c x^4} \, dx\) [22]
Optimal. Leaf size=278 \[ \frac {B x}{c}+\frac {C x^2}{2 c}-\frac {B \left (b-\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{3/2} \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {B \left (b+\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{3/2} \sqrt {b+\sqrt {b^2-4 a c}}}+\frac {\left (A b c-b^2 C+2 a c C\right ) \tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right )}{2 c^2 \sqrt {b^2-4 a c}}+\frac {(A c-b C) \log \left (a+b x^2+c x^4\right )}{4 c^2} \]
[Out]
B*x/c+1/2*C*x^2/c+1/4*(A*c-C*b)*ln(c*x^4+b*x^2+a)/c^2+1/2*(A*b*c+2*C*a*c-C*b^2)*arctanh((2*c*x^2+b)/(-4*a*c+b^
2)^(1/2))/c^2/(-4*a*c+b^2)^(1/2)-1/2*B*arctan(x*2^(1/2)*c^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2))*(b+(2*a*c-b^2)/(
-4*a*c+b^2)^(1/2))/c^(3/2)*2^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2)-1/2*B*arctan(x*2^(1/2)*c^(1/2)/(b+(-4*a*c+b^2)
^(1/2))^(1/2))*(b+(-2*a*c+b^2)/(-4*a*c+b^2)^(1/2))/c^(3/2)*2^(1/2)/(b+(-4*a*c+b^2)^(1/2))^(1/2)
________________________________________________________________________________________
Rubi [A]
time = 0.32, antiderivative size = 278, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 11, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.393, Rules used = {1676, 1265,
787, 648, 632, 212, 642, 12, 1136, 1180, 211} \begin {gather*} \frac {\left (2 a c C+A b c+b^2 (-C)\right ) \tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right )}{2 c^2 \sqrt {b^2-4 a c}}+\frac {(A c-b C) \log \left (a+b x^2+c x^4\right )}{4 c^2}-\frac {B \left (b-\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) \text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{3/2} \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {B \left (\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}+b\right ) \text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {\sqrt {b^2-4 a c}+b}}\right )}{\sqrt {2} c^{3/2} \sqrt {\sqrt {b^2-4 a c}+b}}+\frac {B x}{c}+\frac {C x^2}{2 c} \end {gather*}
Antiderivative was successfully verified.
[In]
Int[(x^3*(A + B*x + C*x^2))/(a + b*x^2 + c*x^4),x]
[Out]
(B*x)/c + (C*x^2)/(2*c) - (B*(b - (b^2 - 2*a*c)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^
2 - 4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b - Sqrt[b^2 - 4*a*c]]) - (B*(b + (b^2 - 2*a*c)/Sqrt[b^2 - 4*a*c])*ArcTan[
(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b + Sqrt[b^2 - 4*a*c]]) + ((A*b*c - b^
2*C + 2*a*c*C)*ArcTanh[(b + 2*c*x^2)/Sqrt[b^2 - 4*a*c]])/(2*c^2*Sqrt[b^2 - 4*a*c]) + ((A*c - b*C)*Log[a + b*x^
2 + c*x^4])/(4*c^2)
Rule 12
Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] && !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]
Rule 211
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]
Rule 212
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
/; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])
Rule 632
Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]
Rule 642
Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[d*(Log[RemoveContent[a + b*x +
c*x^2, x]]/b), x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]
Rule 648
Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Dist[(2*c*d - b*e)/(2*c), Int[1/(a +
b*x + c*x^2), x], x] + Dist[e/(2*c), Int[(b + 2*c*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x] &
& NeQ[2*c*d - b*e, 0] && NeQ[b^2 - 4*a*c, 0] && !NiceSqrtQ[b^2 - 4*a*c]
Rule 787
Int[(((d_.) + (e_.)*(x_))*((f_) + (g_.)*(x_)))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[e*g*(x/c
), x] + Dist[1/c, Int[(c*d*f - a*e*g + (c*e*f + c*d*g - b*e*g)*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c,
d, e, f, g}, x] && NeQ[b^2 - 4*a*c, 0]
Rule 1136
Int[((d_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Simp[d^3*(d*x)^(m - 3)*((a + b*
x^2 + c*x^4)^(p + 1)/(c*(m + 4*p + 1))), x] - Dist[d^4/(c*(m + 4*p + 1)), Int[(d*x)^(m - 4)*Simp[a*(m - 3) + b
*(m + 2*p - 1)*x^2, x]*(a + b*x^2 + c*x^4)^p, x], x] /; FreeQ[{a, b, c, d, p}, x] && NeQ[b^2 - 4*a*c, 0] && Gt
Q[m, 3] && NeQ[m + 4*p + 1, 0] && IntegerQ[2*p] && (IntegerQ[p] || IntegerQ[m])
Rule 1180
Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]
Rule 1265
Int[(x_)^(m_.)*((d_) + (e_.)*(x_)^2)^(q_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> Dist[1/2,
Subst[Int[x^((m - 1)/2)*(d + e*x)^q*(a + b*x + c*x^2)^p, x], x, x^2], x] /; FreeQ[{a, b, c, d, e, p, q}, x] &&
IntegerQ[(m - 1)/2]
Rule 1676
Int[(Pq_)*((d_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Module[{q = Expon[Pq, x],
k}, Int[(d*x)^m*Sum[Coeff[Pq, x, 2*k]*x^(2*k), {k, 0, q/2 + 1}]*(a + b*x^2 + c*x^4)^p, x] + Dist[1/d, Int[(d*
x)^(m + 1)*Sum[Coeff[Pq, x, 2*k + 1]*x^(2*k), {k, 0, (q - 1)/2 + 1}]*(a + b*x^2 + c*x^4)^p, x], x]] /; FreeQ[{
a, b, c, d, m, p}, x] && PolyQ[Pq, x] && !PolyQ[Pq, x^2]
Rubi steps
\begin {align*} \int \frac {x^3 \left (A+B x+C x^2\right )}{a+b x^2+c x^4} \, dx &=\int \frac {B x^4}{a+b x^2+c x^4} \, dx+\int \frac {x^3 \left (A+C x^2\right )}{a+b x^2+c x^4} \, dx\\ &=\frac {1}{2} \text {Subst}\left (\int \frac {x (A+C x)}{a+b x+c x^2} \, dx,x,x^2\right )+B \int \frac {x^4}{a+b x^2+c x^4} \, dx\\ &=\frac {B x}{c}+\frac {C x^2}{2 c}+\frac {\text {Subst}\left (\int \frac {-a C+(A c-b C) x}{a+b x+c x^2} \, dx,x,x^2\right )}{2 c}-\frac {B \int \frac {a+b x^2}{a+b x^2+c x^4} \, dx}{c}\\ &=\frac {B x}{c}+\frac {C x^2}{2 c}-\frac {\left (B \left (b-\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right )\right ) \int \frac {1}{\frac {b}{2}-\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{2 c}-\frac {\left (B \left (b+\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right )\right ) \int \frac {1}{\frac {b}{2}+\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{2 c}+\frac {(A c-b C) \text {Subst}\left (\int \frac {b+2 c x}{a+b x+c x^2} \, dx,x,x^2\right )}{4 c^2}-\frac {\left (A b c-b^2 C+2 a c C\right ) \text {Subst}\left (\int \frac {1}{a+b x+c x^2} \, dx,x,x^2\right )}{4 c^2}\\ &=\frac {B x}{c}+\frac {C x^2}{2 c}-\frac {B \left (b-\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{3/2} \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {B \left (b+\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{3/2} \sqrt {b+\sqrt {b^2-4 a c}}}+\frac {(A c-b C) \log \left (a+b x^2+c x^4\right )}{4 c^2}+\frac {\left (A b c-b^2 C+2 a c C\right ) \text {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c x^2\right )}{2 c^2}\\ &=\frac {B x}{c}+\frac {C x^2}{2 c}-\frac {B \left (b-\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{3/2} \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {B \left (b+\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{3/2} \sqrt {b+\sqrt {b^2-4 a c}}}+\frac {\left (A b c-b^2 C+2 a c C\right ) \tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right )}{2 c^2 \sqrt {b^2-4 a c}}+\frac {(A c-b C) \log \left (a+b x^2+c x^4\right )}{4 c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.27, size = 377, normalized size = 1.36 \begin {gather*} \frac {4 B c x+2 c C x^2-\frac {2 \sqrt {2} B \sqrt {c} \left (-b^2+2 a c+b \sqrt {b^2-4 a c}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {2 \sqrt {2} B \sqrt {c} \left (b^2-2 a c+b \sqrt {b^2-4 a c}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} \sqrt {b+\sqrt {b^2-4 a c}}}+\frac {\left (A c \left (-b+\sqrt {b^2-4 a c}\right )+\left (b^2-2 a c-b \sqrt {b^2-4 a c}\right ) C\right ) \log \left (-b+\sqrt {b^2-4 a c}-2 c x^2\right )}{\sqrt {b^2-4 a c}}-\frac {\left (-A c \left (b+\sqrt {b^2-4 a c}\right )+\left (b^2-2 a c+b \sqrt {b^2-4 a c}\right ) C\right ) \log \left (b+\sqrt {b^2-4 a c}+2 c x^2\right )}{\sqrt {b^2-4 a c}}}{4 c^2} \end {gather*}
Antiderivative was successfully verified.
[In]
Integrate[(x^3*(A + B*x + C*x^2))/(a + b*x^2 + c*x^4),x]
[Out]
(4*B*c*x + 2*c*C*x^2 - (2*Sqrt[2]*B*Sqrt[c]*(-b^2 + 2*a*c + b*Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sq
rt[b - Sqrt[b^2 - 4*a*c]]])/(Sqrt[b^2 - 4*a*c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) - (2*Sqrt[2]*B*Sqrt[c]*(b^2 - 2*a*
c + b*Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(Sqrt[b^2 - 4*a*c]*Sqrt[b +
Sqrt[b^2 - 4*a*c]]) + ((A*c*(-b + Sqrt[b^2 - 4*a*c]) + (b^2 - 2*a*c - b*Sqrt[b^2 - 4*a*c])*C)*Log[-b + Sqrt[b^
2 - 4*a*c] - 2*c*x^2])/Sqrt[b^2 - 4*a*c] - ((-(A*c*(b + Sqrt[b^2 - 4*a*c])) + (b^2 - 2*a*c + b*Sqrt[b^2 - 4*a*
c])*C)*Log[b + Sqrt[b^2 - 4*a*c] + 2*c*x^2])/Sqrt[b^2 - 4*a*c])/(4*c^2)
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 419, normalized size = 1.51
| | |
method |
result |
size |
| | |
risch |
\(\frac {C \,x^{2}}{2 c}+\frac {B x}{c}+\frac {\munderset {\textit {\_R} =\RootOf \left (c \,\textit {\_Z}^{4}+\textit {\_Z}^{2} b +a \right )}{\sum }\frac {\left (\left (A c -b C \right ) \textit {\_R}^{3}-B b \,\textit {\_R}^{2}-a C \textit {\_R} -a B \right ) \ln \left (x -\textit {\_R} \right )}{2 c \,\textit {\_R}^{3}+\textit {\_R} b}}{2 c}\) |
\(86\) |
default |
\(\frac {\frac {1}{2} C \,x^{2}+B x}{c}+\frac {-\frac {\left (-b c A \sqrt {-4 a c +b^{2}}-4 c^{2} a A +A \,b^{2} c -2 C \sqrt {-4 a c +b^{2}}\, a c +C \sqrt {-4 a c +b^{2}}\, b^{2}+4 C a b c -C \,b^{3}\right ) \ln \left (-b -2 c \,x^{2}+\sqrt {-4 a c +b^{2}}\right )}{4 c}+\frac {\left (-2 a c B \sqrt {-4 a c +b^{2}}+b^{2} B \sqrt {-4 a c +b^{2}}+4 a b B c -b^{3} B \right ) \sqrt {2}\, \arctanh \left (\frac {c x \sqrt {2}}{\sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{2 \sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}}{c \left (4 a c -b^{2}\right )}+\frac {\frac {\left (-b c A \sqrt {-4 a c +b^{2}}+4 c^{2} a A -A \,b^{2} c -2 C \sqrt {-4 a c +b^{2}}\, a c +C \sqrt {-4 a c +b^{2}}\, b^{2}-4 C a b c +C \,b^{3}\right ) \ln \left (b +2 c \,x^{2}+\sqrt {-4 a c +b^{2}}\right )}{4 c}+\frac {\left (-2 a c B \sqrt {-4 a c +b^{2}}+b^{2} B \sqrt {-4 a c +b^{2}}-4 a b B c +b^{3} B \right ) \sqrt {2}\, \arctan \left (\frac {c x \sqrt {2}}{\sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{2 \sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}}{c \left (4 a c -b^{2}\right )}\) |
\(419\) |
| | |
|
|
|
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(x^3*(C*x^2+B*x+A)/(c*x^4+b*x^2+a),x,method=_RETURNVERBOSE)
[Out]
1/c*(1/2*C*x^2+B*x)+1/c/(4*a*c-b^2)*(-1/4*(-b*c*A*(-4*a*c+b^2)^(1/2)-4*c^2*a*A+A*b^2*c-2*C*(-4*a*c+b^2)^(1/2)*
a*c+C*(-4*a*c+b^2)^(1/2)*b^2+4*C*a*b*c-C*b^3)/c*ln(-b-2*c*x^2+(-4*a*c+b^2)^(1/2))+1/2*(-2*a*c*B*(-4*a*c+b^2)^(
1/2)+b^2*B*(-4*a*c+b^2)^(1/2)+4*a*b*B*c-b^3*B)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/(
(-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)))+1/c/(4*a*c-b^2)*(1/4*(-b*c*A*(-4*a*c+b^2)^(1/2)+4*c^2*a*A-A*b^2*c-2*C*(-4*a
*c+b^2)^(1/2)*a*c+C*(-4*a*c+b^2)^(1/2)*b^2-4*C*a*b*c+C*b^3)/c*ln(b+2*c*x^2+(-4*a*c+b^2)^(1/2))+1/2*(-2*a*c*B*(
-4*a*c+b^2)^(1/2)+b^2*B*(-4*a*c+b^2)^(1/2)-4*a*b*B*c+b^3*B)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*
x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)))
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(x^3*(C*x^2+B*x+A)/(c*x^4+b*x^2+a),x, algorithm="maxima")
[Out]
1/2*(C*x^2 + 2*B*x)/c + integrate(-(B*b*x^2 + (C*b - A*c)*x^3 + C*a*x + B*a)/(c*x^4 + b*x^2 + a), x)/c
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 61.88, size = 1329593, normalized size = 4782.71 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(x^3*(C*x^2+B*x+A)/(c*x^4+b*x^2+a),x, algorithm="fricas")
[Out]
1/48*(24*C*c*x^2 - 12*c^2*(sqrt(2*sqrt(b^2 - 4*a*c)*c^2*(2*(C^3*a^2*b + B^2*C*a^2*c + 2*A^2*C*a*b*c - A^3*a*c^
2 - (B^2*a*b*c + (a*b^2 + a^2*c)*C^2)*A)/(b^2*c^4 - 4*a*c^5) + ((b^2*c^2 - 6*a*c^3)*A^2 + (b^3*c - 3*a*b*c^2)*
B^2 - 2*(b^3*c - 5*a*b*c^2)*A*C + (b^4 - 4*a*b^2*c - 2*a^2*c^2)*C^2)*(C*b - A*c)/((b^2*c^4 - 4*a*c^5)*c^2) - (
C*b - A*c)^3/c^6)/(C*b^2 - (2*C*a + A*b)*c) - ((b^2*c^2 - 2*a*c^3)*A^2 + (b^3*c - 3*a*b*c^2)*B^2 - 2*(b^3*c -
3*a*b*c^2)*A*C + (b^4 - 4*a*b^2*c + 2*a^2*c^2)*C^2)/(b^2*c^4 - 4*a*c^5) - ((b^2*c^2 - 6*a*c^3)*A^2 + (b^3*c -
3*a*b*c^2)*B^2 - 2*(b^3*c - 5*a*b*c^2)*A*C + (b^4 - 4*a*b^2*c - 2*a^2*c^2)*C^2)/(b^2*c^4 - 4*a*c^5) + 2*(C*b -
A*c)^2/c^4) + (C*b - A*c)/c^2 - (C*b^2 - (2*C*a + A*b)*c)/(sqrt(b^2 - 4*a*c)*c^2))*log(C^5*a^2*b^7 - A*C^4*a*
b^8 + 2*(4*A^4*C*a^3*b + A^5*a^2*b^2 + 2*(A*B^4 + A^2*B^2*C + 2*A^3*C^2)*a^4)*c^5 - (A^5*a*b^4 + 4*(5*B^2*C^3
- 2*A*C^4)*a^5 - 4*(2*B^4*C - 2*A*B^2*C^2 - 3*A^2*C^3)*a^4*b + (7*A*B^4 - 15*A^2*B^2*C + 30*A^3*C^2)*a^3*b^2 -
(8*A^3*B^ ...
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(x**3*(C*x**2+B*x+A)/(c*x**4+b*x**2+a),x)
[Out]
Timed out
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 3520 vs.
\(2 (232) = 464\).
time = 7.76, size = 3520, normalized size = 12.66 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(x^3*(C*x^2+B*x+A)/(c*x^4+b*x^2+a),x, algorithm="giac")
[Out]
-1/4*(C*b - A*c)*log(abs(c*x^4 + b*x^2 + a))/c^2 + 1/2*(C*c*x^2 + 2*B*c*x)/c^2 - 1/8*((2*b^5*c^2 - 16*a*b^3*c^
3 + 32*a^2*b*c^4 - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*b^5 + 8*sqrt(2)*sqrt(b^2 - 4*a*c)
*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a*b^3*c + 2*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*b^4*c -
16*sqrt(2)*sqrt(b^2 - 4*a*c)*sqr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*c^3 -
2*a*b^2*c^4)*sqrt(b^2 - 4*a*c))*C)*log(x^2 + 1/2*(b*c^5 + sqrt(b^2*c^10 - 4*a*c^11))/c^6)/((a*b^4*c - 8*a^2*b
^2*c^2 - 2*a*b^3*c^2 + 16*a^3*c^3 + 8*a^2*b*c^3 + a*b^2*c^3 - 4*a^2*c^4)*c^2*abs(c)) - 1/16*((b^6*c - 8*a*b^4*
c^2 - 2*b^5*c^2 + 16*a^2*b^2*c^3 + 8*a*b^3*c^3 + b^4*c^3 - 4*a*b^2*c^4 + (b^5*c - 8*a*b^3*c^2 - 2*b^4*c^2 + 16
*a^2*b*c^3 + 8*a*b^2*c^3 + b^3*c^3 - 4*a*b*c^4)...
________________________________________________________________________________________
Mupad [B]
time = 1.53, size = 2696, normalized size = 9.70 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((x^3*(A + B*x + C*x^2))/(a + b*x^2 + c*x^4),x)
[Out]
symsum(log((B^3*a^2*b*c - B*C^2*a^3*c + A^2*B*a^2*c^2 + B*C^2*a^2*b^2 - 2*A*B*C*a^2*b*c)/c^2 - root(128*a*b^2*
c^5*z^4 - 16*b^4*c^4*z^4 - 256*a^2*c^6*z^4 - 256*C*a^2*b*c^4*z^3 + 128*C*a*b^3*c^3*z^3 - 128*A*a*b^2*c^4*z^3 -
16*C*b^5*c^2*z^3 + 16*A*b^4*c^3*z^3 + 256*A*a^2*c^5*z^3 + 160*A*C*a^2*b*c^3*z^2 - 72*A*C*a*b^3*c^2*z^2 + 8*A*
C*b^5*c*z^2 - 48*B^2*a^2*b*c^3*z^2 + 28*B^2*a*b^3*c^2*z^2 + 40*A^2*a*b^2*c^3*z^2 + 32*C^2*a*b^4*c*z^2 - 56*C^2
*a^2*b^2*c^2*z^2 - 4*B^2*b^5*c*z^2 - 32*C^2*a^3*c^3*z^2 - 4*A^2*b^4*c^2*z^2 - 96*A^2*a^2*c^4*z^2 - 4*C^2*b^6*z
^2 + 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16*A*B^2*a^2*b*c^2*z + 8
*A^2*C*a*b^3*c*z - 4*A*B^2*a*b^3*c*z - 4*A*C^2*a*b^4*z - 4*A^3*a*b^2*c^2*z - 16*B^2*C*a^3*c^2*z + 16*A*C^2*a^3
*c^2*z - 16*C^3*a^3*b*c*z + 4*C^3*a^2*b^3*z + 16*A^3*a^2*c^3*z + 2*A^3*C*a^2*b*c + 4*A*B^2*C*a^3*c - 2*A^2*C^2
*a^3*c + 2*A*C^3*a^3*b - A^2*B^2*a^2*b*c - B^2*C^2*a^3*b - A^2*C^2*a^2*b^2 - A^4*a^2*c^2 - B^4*a^3*c - C^4*a^4
, z, k), k, 1, 4) + (C*x^2)/(2*c) + (B*x)/c
________________________________________________________________________________________